package org.dromara.house.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.dromara.house.domain.bo.LeasingTrendsBo;
import org.dromara.house.domain.bo.ParkHousingBo;
import org.dromara.house.domain.dto.HouseFloorDto;
import org.dromara.house.domain.dto.HousingDetailsDto;
import org.dromara.house.domain.entity.ParkHousing;

import java.util.List;

/**
 * <p>
 * 房源表 Mapper 接口
 * </p>
 *
 * @author LCH
 * @since 2025-08-26
 */
@Mapper
public interface ParkHousingMapper extends BaseMapper<ParkHousing> {

    Page<ParkHousing> selectPageList(@Param("bo") ParkHousingBo bo, @Param("page") Page<Object> page);

    Double queryTotalArea(@Param("bo") LeasingTrendsBo bo);

    Double queryLeaseArea(@Param("bo") LeasingTrendsBo bo);

    List<HouseFloorDto> selectHouseFloorDto(@Param("housingId") Long housingId);

    List<HousingDetailsDto> selectHousingDetailsDto(@Param("bo") LeasingTrendsBo bo);
}
